package exercise;

import java.util.Scanner;

public class EX01_Q26 {

	public static void main(String[] args) {
		
		int num2 = (int)(Math.random()*100)+1;
		int num1;
		Scanner sc = new Scanner(System.in);
		do{
			System.out.println("숫자를 입력해주세요");	
			num1 = sc.nextInt();
			if(num1>num2){System.out.println("추측한 숫자가 큽니다");}
			else if(num1<num2){System.out.println("추측한 숫자가 작습니다");}
			else if(num1==num2){System.out.println("빙고! 숫자를 맞췄습니다");}
		}while(num1>num2 != num1<num2);
		
		
		
	}

}
